package com.bw.service;

import com.bw.bean.User;
import com.bw.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//使用service朱姐
@Service
public class UserServiceImpl implements UserService{
    //调用dao层方法
    @Autowired
    UserDao userDao;

    //重写实现查询service方法
    @Override
    public List<User> getList(String address, String realName) {
        return userDao.getList(address,realName);
    }

    //重写实现删除service方法
    @Override
    public int del(int[] ids) {
        return userDao.del(ids);
    }
}
